TCP/IP
To understand socket, you must first familiarize yourself with the TCP/IP protocol family. TCP/IP (Transmission Control Protocol/Internet Protocol) is the Transport Control Protocol/inter-network protocol, defines how hosts connect to the
When communicating between processes in a network, the process of each communication must know which process it is communicating with on which computer. Otherwise the communication is impossible to talk about! A process can be uniquely identified
Sockets are abstractions of communication endpoints. The file description descriptor is created with the open function, and the socket descriptive descriptor is created with the socket function. The socket function prototype is as follows:int socket
Sockets are abstractions of communication endpoints. The file descriptor is created with the open function, and the socket descriptor is created with the socket function. The socket function prototype is as follows:int socket (int domain, int type,
Sockets and WebSocket
This site is reproduced in addition to the article, are the original site or translation.
The article welcomes all forms of reprint, but please 18 years of age and above the reprint of the source of the article,
1. OverviewWebSocket is created to meet the growing demand for real-time communications based on the Web. In the traditional Web, in order to achieve real-time communication, the common way is to use the HTTP protocol to continuously send requests.
TCP protocol(Transmission control protocol, transfer control protocol) isConnection oriented transmission layer in TCP/IP System),TCP protocolIt can detect and recover possible packet loss, duplication, and other errors from the host to the Host
Do you have any experience in "socket color change? As one of my friends said, socket is a last resort. Haha, is socket really so scary?
In fact, this is not false. Sometimes the socket is really not very easy to manipulate and maintain, but in any
In the process of reading the Redis source, I have been thinking about the question of "why can single-threaded redis be so efficient?" ”。 In order to understand this problem, I looked up some information, probably to figure out the development of
LNMP use socket to connect Nginx optimize PHP-FPM performance
There are 2 ways to connect fastcgi nginx: TCP and UNIX domain sockets
What is a UNIX domain socket. --Wikipedia
A Unix domain socket or an IPC socket is a terminal that enables
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.